import {createRouter, createWebHashHistory} from "vue-router";
import ExamPage from "@/components/ExamPage.vue";
import StudentInitInfo from "@/components/StudentInitInfo.vue";
import Page from "@/components/page.vue";

const routes = [
    {path: '/',redirect:'/student'},
    {
        path: '/exam/:schoolId',
        name: 'exam',
        component: ExamPage,
        props: true
    },
    {path: '/page',component: Page},
    {path:'/student',component:StudentInitInfo}
]
const router = createRouter({
    routes,
    history:createWebHashHistory()
})

export default router;